﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using blackhouse.Locations;

namespace blackhouse.BlackApart.Business.Apartments {
    public class ImpApartmentLocation : IApartmentLocation {

        #region Properties

        public int Id { get; set; }
        public Location Localization { get; set; }
        public string LocationName { get; set; }
		public int CityId { get; set; }
		public string City { get; set; }
		public int DistrictId { get; set; }
		public string District { get; set; }

        #endregion

        #region Methods

        public bool Save() {
            return
                Localization.Latitude > 0
                && Localization.Longitude > 0
                && !string.IsNullOrEmpty(LocationName);
        }

        #endregion

    }
}
